import { AxiosResponse } from 'axios';
import httpClient from './httpClient';

// GET请求
export const get = <T>(url: string, params?: any): Promise<AxiosResponse<T>> => {
  return httpClient.get<T>(url, { params });
};

// POST请求
export const post = <T>(url: string, data: any): Promise<AxiosResponse<T>> => {
  return httpClient.post<T>(url, data);
};
